﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="ClientMateReceiptDetail.aspx.cs" Inherits="JobManage_ClientMateReceiptDetail"
    Title="尾纸确认详细" culture="auto" meta:resourcekey="PageResource3" uiculture="auto" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div id="myDiv" runat="server" class="divBgCover">
    </div>
    <div id="divError" runat="server" class="blue divActiveWindow">
        <table width="100%" align="center">
            <tr>
                <td>
                    <div class="title">
                        <asp:Label ID="lblConfirm" runat="server" Text="尾纸确认" meta:resourcekey="lblConfirmResource1"></asp:Label></div>
                    <table class="add_table" cellspacing="1" cellpadding="3" align="center">
                        <tr>
                            <td align="right">
                                <asp:Label ID="lblMateReceiptDate2" runat="server" Text="尾纸日期：" meta:resourcekey="lblMateReceiptDate2Resource1"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtMateReceiptDate2" runat="server" onkeydown="return pdDate(this,event);" Width="120px" meta:resourcekey="txtMateReceiptDate2Resource1"></asp:TextBox>
                                
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtMateReceiptDate2"
                                    ValidationGroup="bookingnote" ErrorMessage="日期格式不正确" ValidationExpression="((1[89]\d{2})|([2-8]\d{3}))[-](([1][012])|(0{1}[1-9]))[-]((3[01])|([12]\d)|(0{1}[1-9]))"
                                    meta:resourcekey="RegularExpressionValidator1Resource1"></asp:RegularExpressionValidator>
                            </td>
                             <td align="right">
                                <asp:Label ID="lblDeliveryDate2" runat="server" Text="交货日期：" meta:resourcekey="lblDeliveryDate2Resource1"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtDeliveryDate2" runat="server" onkeydown="return pdDate(this,event);" Width="120px" meta:resourcekey="txtMateReceiptDate2Resource1"></asp:TextBox>
                             
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtDeliveryDate2"
                                    ValidationGroup="bookingnote" ErrorMessage="日期格式不正确" ValidationExpression="((1[89]\d{2})|([2-8]\d{3}))[-](([1][012])|(0{1}[1-9]))[-]((3[01])|([12]\d)|(0{1}[1-9]))"
                                    meta:resourcekey="RegularExpressionValidator1Resource1"></asp:RegularExpressionValidator>
                            </td>                           
                            
                        </tr>
                        <tr>
                            <td align="center" colspan="4">
                                <asp:Button ID="btnSub" runat="server" Text="提交" CssClass="btn" OnClick="btnSub_Click"
                                    ValidationGroup="bookingnote" meta:resourcekey="btnSubResource1" />&nbsp;&nbsp;<asp:Button
                                        ID="btnClose" CssClass="btn" runat="server" Text="返回" OnClick="btnClose_Click"
                                        meta:resourcekey="btnCloseResource1" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    <div class="title">
        &nbsp;<asp:Label ID="lblTitleDetail" runat="server" Text="Job详细信息列表" meta:resourcekey="lblTitleDetailResource1"></asp:Label></div>
    <div class="list_title">
        <div class="autoleft">
            <asp:Label ID="lblSelectOut" runat="server" Text="检索出" meta:resourcekey="lblSelectOutResource1"></asp:Label>
            <asp:Label ID="lblTotal" runat="server" meta:resourcekey="lblTotalResource1"></asp:Label><asp:Label
                ID="lblSelectOut2" runat="server" Text="条记录" meta:resourcekey="lblSelectOut2Resource1"></asp:Label></div>
        <div class="autoright">
            <asp:Label ID="lblPerPage" runat="server" Text="每页显示：" meta:resourcekey="lblPerPageResource1"></asp:Label>
            <asp:DropDownList ID="ddlPages" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlPages_SelectedIndexChanged"
                meta:resourcekey="ddlPagesResource1">
                <asp:ListItem Selected="True" Text="5" Value="5" meta:resourcekey="ListItemResource1"></asp:ListItem>
                <asp:ListItem Text="10" Value="10" meta:resourcekey="ListItemResource2"></asp:ListItem>
            </asp:DropDownList>
        </div>
    </div>
    <div style="overflow: auto; width: 100%; height: 400px; padding: 1px;">
        <asp:GridView ID="gvShipperOrderDetailList" runat="server" AllowPaging="True" PageSize="5"
            EmptyDataText="Job详细为空" AutoGenerateColumns="False" Width="100%" CssClass="tblGridView"
            AllowSorting="True" OnPageIndexChanging="gvShipperOrderDetailList_PageIndexChanging"
            OnSorting="gvShipperOrderDetailList_Sorting" meta:resourcekey="gvShipperOrderDetailListResource1">
            <PagerTemplate>
                <table style="width: 100%">
                    <tr>
                        <td>
                            <asp:Label ID="lblPerPage" runat="server" Text="页次：" meta:resourcekey="lblPerPageResource2"></asp:Label>&nbsp;<asp:Label
                                ID="Label1" runat="server" Text='<%# ((GridView)Container.Parent.Parent).PageIndex+1 %>'
                                meta:resourcekey="Label1Resource1"></asp:Label>/<asp:Label ID="Label2" runat="server"
                                    Text='<%# ((GridView)Container.Parent.Parent).PageCount %>' meta:resourcekey="Label2Resource1"></asp:Label><asp:Label
                                        ID="lblPage" runat="server" Text="页" meta:resourcekey="lblPageResource1"></asp:Label>&nbsp;
                            <asp:Label ID="lblTotalPages" runat="server" Text="总计" meta:resourcekey="lblTotalPagesResource1"></asp:Label>&nbsp;<asp:Label
                                ID="Label3" runat="server" Text="<%# ((System.Data.DataView)gvShipperOrderDetailList.DataSource).Count %>"
                                meta:resourcekey="Label3Resource1"></asp:Label>
                        </td>
                        <td align="right">
                            <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Page" CommandArgument="First"
                                Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=0 %>" Text="首页" meta:resourcekey="LinkButton1Resource1"></asp:LinkButton>
                            <asp:LinkButton ID="LinkButton2" runat="server" CommandArgument="Prev" CommandName="Page"
                                Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=0 %>" Text="前页" meta:resourcekey="LinkButton2Resource1"></asp:LinkButton>
                            <asp:LinkButton ID="LinkButton3" runat="server" CommandName="Page" CommandArgument="Next"
                                Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=((GridView)Container.Parent.Parent).PageCount-1 %>"
                                Text="后页" meta:resourcekey="LinkButton3Resource1"></asp:LinkButton>
                            <asp:LinkButton ID="LinkButton4" runat="server" CommandArgument="Last" CommandName="Page"
                                Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=((GridView)Container.Parent.Parent).PageCount-1 %>"
                                Text="尾页" meta:resourcekey="LinkButton4Resource1"></asp:LinkButton>&nbsp;
                            <asp:Label ID="lblTurnOn" runat="server" Text="转第" meta:resourcekey="lblTurnOnResource1"></asp:Label>
                            <asp:TextBox ID="txtPages" runat="server" Width="35px" meta:resourcekey="txtPagesResource1"></asp:TextBox>
                            <asp:Label ID="lblPages2" runat="server" Text="页" meta:resourcekey="lblPages2Resource1"></asp:Label>
                            <asp:LinkButton ID="lbtnGo" runat="server" Text="提交" OnClick="lbtnGo_Click" meta:resourcekey="lbtnGoResource1"></asp:LinkButton>
                        </td>
                    </tr>
                </table>
            </PagerTemplate>
            <Columns>
                <asp:TemplateField HeaderText="序号" meta:resourcekey="TemplateFieldResource1">
                    <ItemTemplate>
                        <asp:Label ID="lblNo" runat="server" Text='<%# (Container as GridViewRow).RowIndex + 1 %>'
                            meta:resourcekey="lblNoResource2"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="落货纸号" SortExpression="SONO" meta:resourcekey="TemplateFieldResource2">
                    <ItemTemplate>
                        <asp:Label ID="lblSONO" runat="server" Text='<%# Eval("SONO") %>' meta:resourcekey="lblSONOResource1"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="开仓日期" SortExpression="WinStart" meta:resourcekey="TemplateFieldResource3">
                    <ItemTemplate>
                        <asp:Label ID="lblWinStart" runat="server" Text='<%# String.Format("{0:yyyy-MM-dd}",Eval("WinStart")) %>'
                            meta:resourcekey="lblWinStartResource1"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="截数日期" SortExpression="WinClose" meta:resourcekey="TemplateFieldResource4">
                    <ItemTemplate>
                        <asp:Label ID="lblWinClose" runat="server" Text='<%# String.Format("{0:yyyy-MM-dd}", Eval("WinClose")) %>'
                            meta:resourcekey="lblWinCloseResource1"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="JobDate" SortExpression="JobDate" meta:resourcekey="TemplateFieldResource5">
                    <ItemTemplate>
                        <asp:Label ID="lblJobDate" runat="server" Text='<%# String.Format("{0:yyyy-MM-dd}", Eval("JobDate")) %>'
                            meta:resourcekey="lblJobDateResource1"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="仓库" SortExpression="WhouseID" meta:resourcekey="TemplateFieldResource6">
                    <ItemTemplate>
                        <asp:Label ID="lblWhouseID" runat="server" Text='<%# GetClient(Eval("WhouseID")) %>'
                            meta:resourcekey="lblWhouseIDResource1"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="整框/散货" SortExpression="FCLLCL" meta:resourcekey="TemplateFieldResource7">
                    <ItemTemplate>
                        <asp:Label ID="lblFCLLCL" runat="server" Text='<%# Eval("FCLLCL") %>' meta:resourcekey="lblFCLLCLResource1"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="货号" SortExpression="ItemNO" meta:resourcekey="TemplateFieldResource8">
                    <ItemTemplate>
                        <asp:Label ID="lblItemNO" runat="server" Text='<%# Eval("ItemNO") %>' meta:resourcekey="lblItemNOResource1"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="件数" SortExpression="PCS" meta:resourcekey="TemplateFieldResource9">
                    <ItemTemplate>
                        <asp:Label ID="lblPCS" runat="server" Text='<%# Eval("PCS") %>' meta:resourcekey="lblPCSResource1"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="箱数" SortExpression="CTN" meta:resourcekey="TemplateFieldResource10">
                    <ItemTemplate>
                        <asp:Label ID="lblCTN" runat="server" Text='<%# Eval("CTN") %>' meta:resourcekey="lblCTNResource1"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="毛重" SortExpression="PCGrossWTS" meta:resourcekey="TemplateFieldResource11">
                    <ItemTemplate>
                        <asp:Label ID="lblGrossWT" runat="server" Text='<%# Eval("GrossWT") %>' meta:resourcekey="lblGrossWTResource1"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="体积" SortExpression="VOL" meta:resourcekey="TemplateFieldResource12">
                    <ItemTemplate>
                        <asp:Label ID="lblVOL" runat="server" Text='<%# Eval("VOL") %>' meta:resourcekey="lblVOLResource1"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="备注" SortExpression="Remark" meta:resourcekey="TemplateFieldResource13">
                    <ItemTemplate>
                        <asp:Label ID="lblRemark" runat="server" Text='<%# Eval("Remark") %>' meta:resourcekey="lblRemarkResource1"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <HeaderStyle HorizontalAlign="Center" />
            <RowStyle HorizontalAlign="Center" />
        </asp:GridView>
    </div>
    <div>
        <div class="title">
            &nbsp;<asp:Label ID="Label4" runat="server" Text="车辆列表" meta:resourcekey="Label4Resource1"></asp:Label></div>
        <div class="list_title">
            <div class="autoleft">
                <asp:Label ID="Label5" runat="server" Text="检索出" meta:resourcekey="lblSelectOutResource1"></asp:Label>
                <asp:Label ID="lblTotalTruck" runat="server" meta:resourcekey="lblTotalTruckResource1"></asp:Label><asp:Label
                    ID="Label6" runat="server" Text="条记录" meta:resourcekey="lblSelectOut2Resource1"></asp:Label></div>
            <div class="autoright">
                <asp:Label ID="Label7" runat="server" Text="每页显示：" meta:resourcekey="lblPerPageResource1"></asp:Label>
                <asp:DropDownList ID="ddlPagesTruck" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlPagesTruck_SelectedIndexChanged"
                    meta:resourcekey="ddlPagesTruckResource1">
                    <asp:ListItem Selected="True" Text="5" Value="5" meta:resourcekey="ListItemResource3"></asp:ListItem>
                    <asp:ListItem Text="10" Value="10" meta:resourcekey="ListItemResource4"></asp:ListItem>
                </asp:DropDownList>
            </div>
        </div>
        <asp:GridView ID="gvTruckList" runat="server" AllowPaging="True" PageSize="5" EmptyDataText="没有分配车辆"
            AutoGenerateColumns="False" Width="100%" CssClass="tblGridView" AllowSorting="True"
            OnPageIndexChanging="gvTruckList_PageIndexChanging" OnSorting="gvTruckList_Sorting"
            meta:resourcekey="gvTruckListResource1">
            <PagerTemplate>
                <table style="width: 100%">
                    <tr>
                        <td>
                            <asp:Label ID="lblPerPage" runat="server" Text="页次" meta:resourcekey="lblPerPageResource2"></asp:Label>&nbsp;<asp:Label
                                ID="Label1" runat="server" Text='<%# ((GridView)Container.Parent.Parent).PageIndex+1 %>'
                                meta:resourcekey="Label1Resource2"></asp:Label>/<asp:Label ID="Label2" runat="server"
                                    Text='<%# ((GridView)Container.Parent.Parent).PageCount %>' meta:resourcekey="Label2Resource2"></asp:Label><asp:Label
                                        ID="lblPage" runat="server" Text="页" meta:resourcekey="lblPageResource1"></asp:Label>&nbsp;
                            <asp:Label ID="lblTotalPages" runat="server" Text="总计" meta:resourcekey="lblTotalPagesResource1"></asp:Label>&nbsp;<asp:Label
                                ID="Label3" runat="server" Text="<%# ((System.Data.DataView)gvTruckList.DataSource).Count %>"
                                meta:resourcekey="Label3Resource2"></asp:Label>
                        </td>
                        <td align="right">
                            <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Page" CommandArgument="First"
                                Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=0 %>" Text="首页" meta:resourcekey="LinkButton1Resource2"></asp:LinkButton>
                            <asp:LinkButton ID="LinkButton2" runat="server" CommandArgument="Prev" CommandName="Page"
                                Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=0 %>" Text="前页" meta:resourcekey="LinkButton2Resource2"></asp:LinkButton>
                            <asp:LinkButton ID="LinkButton3" runat="server" CommandName="Page" CommandArgument="Next"
                                Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=((GridView)Container.Parent.Parent).PageCount-1 %>"
                                Text="后页" meta:resourcekey="LinkButton3Resource2"></asp:LinkButton>
                            <asp:LinkButton ID="LinkButton4" runat="server" CommandArgument="Last" CommandName="Page"
                                Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=((GridView)Container.Parent.Parent).PageCount-1 %>"
                                Text="尾页" meta:resourcekey="LinkButton4Resource2"></asp:LinkButton>&nbsp;
                            <asp:Label ID="lblTurnOnTruck" runat="server" Text="转第" meta:resourcekey="lblTurnOnTruckResource1"></asp:Label><asp:TextBox
                                ID="txtPagesTruck" runat="server" Width="35px" meta:resourcekey="txtPagesTruckResource1"></asp:TextBox>
                            <asp:Label ID="lblPages2Truck" runat="server" Text="页" meta:resourcekey="lblPages2TruckResource1"></asp:Label>
                            <asp:LinkButton ID="lbtnGoTruck" runat="server" Text="提交" OnClick="lbtnGoTruck_Click"
                                meta:resourcekey="lbtnGoTruckResource1"></asp:LinkButton>
                        </td>
                    </tr>
                </table>
            </PagerTemplate>
            <Columns>
                <asp:TemplateField HeaderText="车牌号" SortExpression="LicenseNO" meta:resourcekey="TemplateFieldResource14">
                    <ItemTemplate>
                        <asp:Label ID="lblLicenseNO" runat="server" Text='<%# Eval("LicenseNO") %>' meta:resourcekey="lblLicenseNOResource1"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="运输队" SortExpression="Contractor" meta:resourcekey="TemplateFieldResourceContractor">
                    <ItemTemplate>
                        <asp:Label ID="lblContractorName" runat="server" Text='<%# Eval("ContractorName") %>'
                            meta:resourcekey="lblContractorNameResource1"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Driver" SortExpression="DriverName" meta:resourcekey="TemplateFieldResource15">
                    <ItemTemplate>
                        <asp:Label ID="lblDriverName" runat="server" Text='<%# Eval("DriverName") %>' meta:resourcekey="lblDriverNameResource1"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="车型" SortExpression="Type" meta:resourcekey="TemplateFieldResource17">
                    <ItemTemplate>
                        <asp:Label ID="lblType" runat="server" Text='<%# GetType(Eval("Type")) %>' meta:resourcekey="lblTypeResource1"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <HeaderStyle HorizontalAlign="Center" />
            <RowStyle HorizontalAlign="Center" />
        </asp:GridView>
    </div>
    <%--  </ContentTemplate>
        
    </asp:UpdatePanel>--%>
    <div align="center">
        <asp:Button ID="btnConfirm" runat="server" Text="尾纸确认" CssClass="btn" OnClick="btnConfirm_Click"
            meta:resourcekey="btnConfirmResource1" />&nbsp;
        <asp:Button ID="btnBack" runat="server" Text="返回" CssClass="btn" OnClick="btnBack_Click"
            meta:resourcekey="btnBackResource1" />
    </div>
    <input type="hidden" id="hidUpdateNum" runat="server" />
</asp:Content>
